package com.example.perplonews.a_d_fragment.a_news.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.example.perplonews.a_b_entity.ChannelEntity
import com.example.perplonews.a_b_entity.MoreChannel
import com.example.perplonews.a_b_utils.LjlUtils

class VipAdapter(
    fragmentManager: FragmentManager,
    private var list: ArrayList<Fragment>,
    private var list2: List<MoreChannel.Values>
) : FragmentStatePagerAdapter(fragmentManager) {

    override fun getCount(): Int {
        return list.size
    }

    override fun getItem(position: Int): Fragment {
        return list.get(position)
    }

    override fun getPageTitle(position: Int): CharSequence {

            return "" + list2.get(position).channel_name
        }


}